Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep-alive timeouts. #627

Merged
merged 7 commits into from
Dec 12, 2019
Merged

Keep-alive timeouts. #627

merged 7 commits into from
Dec 12, 2019

Conversation

tomchristie
Copy link
Member

@tomchristie tomchristie commented Dec 11, 2019

Closes #34
Closes #95 (as best we can)
Closes #289
Closes #381

Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somes initial comments.

Just to confirm — this mechanism only intervenes at the time of making a request, correct? I'm wondering how long requests (e.g. those using e.g. read_timeout=20) would be affected by this change. I assume that while the request is executing, the connection is not considered keep-alive, so we're all good?

httpx/dispatch/connection_pool.py Outdated Show resolved Hide resolved
httpx/dispatch/connection_pool.py Show resolved Hide resolved
httpx/dispatch/connection_pool.py Outdated Show resolved Hide resolved
httpx/dispatch/connection_pool.py Outdated Show resolved Hide resolved
@tomchristie
Copy link
Member Author

Have made some cleanups based on the review.

I'd like for all of this to be a bit tighter, as part of #624, but it seems sensible to approach it incrementally, and at least address the issue for now.

Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nit then this looks good to me!

httpx/dispatch/connection_pool.py Outdated Show resolved Hide resolved
Copy link
Member

@florimondmanca florimondmanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🎉

@tomchristie tomchristie merged commit 499de51 into master Dec 12, 2019
@tomchristie tomchristie deleted the add-time-to-backend branch December 12, 2019 11:52
@jborean93 jborean93 mentioned this pull request Nov 23, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants